home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / bbs / maxsutils.lha / MaxUtils / FileListGen12.lha / nofragli.lha / Include / nofrag.h < prev    next >
C/C++ Source or Header  |  1992-05-15  |  2KB  |  94 lines

  1. #ifndef LIBRARIES_NOFRAG_H
  2. #define LIBRARIES_NOFRAG_H 1
  3.  
  4. /*-- AutoRev header do NOT edit!
  5. *
  6. *   Program         :   nofrag.h
  7. *   Copyright       :   ⌐ 1991 Jaba Development
  8. *   Author          :   Jan van den Baard
  9. *   Creation Date   :   06-Apr-91
  10. *   Current version :   2.2
  11. *   Translator      :   Several
  12. *
  13. *   REVISION HISTORY
  14. *
  15. *   Date          Version         Comment
  16. *   ---------     -------         ------------------------------------------
  17. *   13-Apr-92     2.2             Removed mungwall hits.
  18. *   19-May-91     2.1             Added 'Vec' routines.
  19. *   06-Apr-91     1.1             Initial version!
  20. *
  21. *-- REV_END --*/
  22.  
  23. #ifndef EXEC_TYPES_H
  24. #include <exec/types.h>
  25. #endif
  26.  
  27. #ifndef EXEC_MEMORY_H
  28. #include <exec/memory.h>
  29. #endif
  30.  
  31. #ifndef EXEC_LISTS_H
  32. #include <exec/lists.h>
  33. #endif
  34.  
  35. #ifndef EXEC_LIBRARIES_H
  36. #include <exec/libraries.h>
  37. #endif
  38.  
  39. struct NoFragBase
  40. {
  41.     struct  Library     LibNode;
  42. };
  43.  
  44. #define NOFRAG_VERSION  2
  45. #define NOFRAG_REVISION 2
  46.  
  47. /*
  48.  * ALL structures following are PRIVATE! DO NOT USE THEM!
  49.  */
  50. struct MemoryBlock
  51. {
  52.     struct MemoryBlock *Next;
  53.     struct MemoryBlock *Previous;
  54.     ULONG               Requirements;
  55.     ULONG               BytesUsed;
  56. };
  57.  
  58. struct MemoryItem
  59. {
  60.     struct MemoryItem  *Next;
  61.     struct MemoryItem  *Previous;
  62.     struct MemoryBlock *Block;
  63.     ULONG               Size;
  64. };
  65.  
  66. struct BlockList
  67. {
  68.     struct MemoryBlock *First;
  69.     struct MemoryBlock *End;
  70.     struct MemoryBlock *Last;
  71. };
  72.  
  73. struct ItemList
  74. {
  75.     struct MemoryItem  *First;
  76.     struct MemoryItem  *End;
  77.     struct MemoryItem  *Last;
  78. };
  79.  
  80. /*
  81.  * This structure may only be used to pass on to the library routines!
  82.  * It may ONLY be obtained by a call to "GetMemoryChain()"
  83.  */
  84. struct MemoryChain
  85. {
  86.     struct BlockList    Blocks;
  87.     struct ItemList     Items;
  88.     ULONG               BlockSize;
  89. };
  90.  
  91. #define MINALLOC        sizeof(struct MemoryItem)
  92.  
  93. #endif
  94.